﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="UC_Quangcao.ascx.cs" Inherits="Manager_Quangcao_Controls_UC_Quangcao" %>
<div id="TitleRight">
    <div id="Breadcrumb">
        <ul>
            <li><a href="../Trangchu/">Manager</a></li>
            <li>Quảng cáo</li>
            
        </ul>
    </div>
</div>
<div class="nav_tabs">
    <ul>
        
        <li>
            <div class="Selected">
                <a href="Quangcao.aspx">Thông tin quảng cáo</a></div>
        </li>
        <li>
            <div class="Unselected">
                <a href="Themquangcao.aspx">Thêm quảng cáo mới</a></div>
        </li>
    </ul>
</div>
<div class="Clear">
    <br />
</div>
<div class="description">
    <p>
        Ở đây bạn có thể quản lý các Khách Hàng trong hệ thống. Với các hành động xem, sửa.</p>
</div>
<div class="Content1Right-main">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <label>
                Chọn vị trí quảng cáo</label>
            <asp:DropDownList ID="drlChonquangcao" runat="server" AutoPostBack="True" OnSelectedIndexChanged="drlChonquangcao_SelectedIndexChanged">
                
                <asp:ListItem Value="1">SlideShow</asp:ListItem>
                <asp:ListItem Value="2">Góc trái</asp:ListItem>
            </asp:DropDownList>
            <asp:GridView ID="gvQuangcao" runat="server" AutoGenerateColumns="False" CellPadding="4"
                ForeColor="#333333" onrowcommand="gvQuangcao_RowCommand">
                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                <Columns>
                    <asp:TemplateField HeaderText="Tên">
                        <ItemTemplate>
                            <asp:Label ID="lblName" runat="server" Text='<%#Eval("Name") %>'></asp:Label>
                        </ItemTemplate>
                        <ControlStyle Width="150px" />
                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Hình ảnh">
                        <ItemTemplate>
                            <asp:Image ID="imgAD" ImageUrl='<%#Eval("Image") %>' runat="server" Width="50px"
                                Height="60px" />
                        </ItemTemplate>
                        <ControlStyle Width="60px" />
                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Trang liên kết">
                        <ItemTemplate>
                            <asp:HyperLink ID="hplLink" NavigateUrl='<%#Eval("Link") %>' runat="server"><%#Eval("Link") %></asp:HyperLink>
                        </ItemTemplate>
                        <ControlStyle Width="200px" />
                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Thứ tự">
                        <ItemTemplate>
                            <asp:TextBox style="text-align:center;" ID="txtOrder" Text='<%#Eval("Order") %>' Width="40px" runat="server"></asp:TextBox>
                        </ItemTemplate>
                        <ControlStyle Width="50px" />
                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Trạng thái">
                        <ItemTemplate>
                            <asp:Label ID="lblTrangthai" runat="server" Text='<%#Eval("Status") %>'></asp:Label>
                        </ItemTemplate>
                        <ControlStyle Width="100px" />
                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Hành động">
                        <ItemTemplate>
                            <asp:Button ID="btnChitiet" runat="server" Text="Chi tiết" Style="width: 60px; height: 30px"
                                CommandArgument='<%#Eval("Id") %>' CommandName="Chitiet" />
                            <asp:Button ID="btnXoa" runat="server" Text="Xóa" style="width:40px; height:30px" CommandName="Xoa" CommandArgument='<%#Eval("Id") %>'  />
                        </ItemTemplate>
                        <ControlStyle Width="100px" />
                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                    </asp:TemplateField>
                </Columns>
                <EditRowStyle BackColor="#999999" />
                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#0263A1" BorderColor="Black" BorderStyle="Double" BorderWidth="1px"
                    Font-Bold="True" Font-Size="Medium" ForeColor="White" Height="40px" />
                <PagerStyle ForeColor="#003366" HorizontalAlign="Center" CssClass="paging" />
                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                <SortedAscendingCellStyle BackColor="#E9E7E2" />
                <SortedAscendingHeaderStyle BackColor="#506C8C" />
                <SortedDescendingCellStyle BackColor="#FFFDF8" />
                <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
            </asp:GridView>
        </ContentTemplate>
    </asp:UpdatePanel>
</div>
